package com.zhy.learning.demo.service.impl;

import com.zhy.learning.demo.annotation.Log;
import com.zhy.learning.demo.service.TestService;
import org.springframework.stereotype.Service;

/**
 * Created by zhanghy on 2019-09-23
 * description
 */
@Service
public class TestServiceImpl implements TestService {

    @Override
    public String save(String str) {
        System.out.println("保存信息");
        if ("1" == str) {
            throw new RuntimeException();
        }
        return "保存信息";
    }

    @Log(value = "testService")
    @Override
    public void testAnnotationAop() {
        System.out.println("testAnnotationAop");
    }
}
